package com.irssproject.app.entitats.recommendations;

import java.io.Serializable;

import com.irssproject.app.entitats.User;

public class WebUser implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 8730455168315432673L;
    private Long idusuari;
    private String login;
    private String email;
    private String name;
    private String place;

    public WebUser() {
    }

    public WebUser(String login) {
        this.login = login;
    }

    public WebUser(User usuari) {
        this.idusuari = usuari.getId();
        this.login = usuari.getLogin();
        this.email = usuari.getEmail();
        this.name = usuari.getName();
        this.place = usuari.getPlace();
    }

    public Long getIdusuari() {
        return idusuari;
    }

    public void setIdusuari(Long idusuari) {
        this.idusuari = idusuari;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}
